<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试页</title>
</head>
<body>
<input id="code">
<button onclick="getOpenid()">请求</button>
<button onclick="getOpenid2()">请求2</button>
</body>
<script src="jquery-2.1.4.min.js"></script>
<script>
    var ip = "http://www.jot8.com";
    //    var ip = ".";
    function getOpenid() {
        $.ajax({
            url: "./pc/account/login",
//            contentType: "application/json",
            headers: {
                authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWRtaW4iLCJuYW1lIjoiZnlmIiwidGVsZXBob25lIjoiMTgwNTk4Njg5MjAiLCJ2YWxpZEJlZm9yZSI6MTQ5OTk5NDYzNjA5NywiaWF0IjoxNDk5OTA4MjM2fQ.1ISIp9_TKkqHV7NVQF67KwnbWglASxWy6hmXGc8DlUA"
            },
            data: JSON.stringify({
                "Account": "admin",
                "Password": "e10adc3949ba59abbe56e057f20f883e"
            }),
            type: "post",
            async: true,
            dataType: "json",
            success: function (data) {
                alert(JSON.stringify(data));
            },
            error: function (err) {
                alert(err);
            }
        });
    }
    function getOpenid2() {
        $.ajax({
            url: "http://www.qubitrich.com/pc/user/list",
            contentType: "application/json",
            headers: {
                authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWRtaW4iLCJuYW1lIjoiZnlmIiwidGVsZXBob25lIjoiMTgwNTk4Njg5MjAiLCJ2YWxpZEJlZm9yZSI6MTUwMDAxMjc4ODUyMCwiaWF0IjoxNDk5OTI2Mzg4fQ.3bvr76wEQ74tg30S3wk1Bm1XXNPMMulSXwIjtMBnT6g"
            },
            data: JSON.stringify({options: {skip: 0, limit: 1}}),
            type: "post",
            async: true,
            dataType: "json",
            success: function (data) {
                alert(JSON.stringify(data));
            },
            error: function (err) {
                alert(err);
            }
        });
    }
</script>
</html>